package com.project.restaurant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2022-10-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("r_meal_picture")
public class MealPicture extends Model<MealPicture> {

    private static final long serialVersionUID = 1L;

    /**
    * 餐点id，该图片归属的餐点
    */
    private Integer mealId;

    /**
    * 餐点的描述图片
    */
    @TableId(value = "meal_picture_url", type = IdType.ASSIGN_ID)
    private String mealPictureUrl;


    @Override
    public Serializable pkVal() {
    return this.mealPictureUrl;
    }

}
